package com.hbzjjzx.coach.coach.controller;

import com.hbzjjzx.coach.coach.domain.Coach;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * User: liandyao
 * Date: 2020-01-03
 * Time: 13:23
 * Description: 主教练微服务
 */
@RestController
public class CoachController {

    @GetMapping("coach/{id}")
    public Coach findById(@PathVariable("id") Integer id){
        Coach coach = new Coach();
        coach.setCoachId(1);
        coach.setCoachName("主教练A");
        return coach ;
    }



}
